package com.adminsystem.java.user.pojo.param;

import lombok.Data;
import javax.validation.constraints.*;

/**
 * @author wangpeiao
 */
@Data
public class UserAddParam {
    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6, message = "密码至少6位")
    private String password;

    @Email(message = "邮箱格式不正确")
    private String email;

    private String realName;

    private String phone;

    // 0=女，1=男
    private Integer gender;

    // 0=禁用，1=启用
    private Integer status;
}
